package cn.w2cs.service.impl;

import cn.w2cs.mapper.BmsBillboardMapper;
import cn.w2cs.mapper.BmsTipMapper;
import cn.w2cs.model.entity.BmsBillboard;
import cn.w2cs.model.entity.BmsTip;
import cn.w2cs.service.IBmsBillboardService;
import cn.w2cs.service.IBmsTipService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author ：LY
 * @date ：Created in 2021/4/9 17:41
 * @modified By：
 */
@Slf4j
@Service
public class IBmsTipServiceImpl extends ServiceImpl<BmsTipMapper, BmsTip> implements IBmsTipService {


    @Override
    public BmsTip getRandomTip() {
        BmsTip todayTip = null;
        try {
            todayTip = this.baseMapper.getRandomTip();
        } catch (Exception e) {
            log.info("tip转化失败");
        }
        return todayTip;
    }
}
